package com.szrt.java.day20170104.demo03;

public class Car /*extends Object*/ {
	
	
	private String brand;
	private double price;
	
	private String color;
	
	
	
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	public Car(String brand, double price) {
		super();
		this.brand = brand;
		this.price = price;
	}
	
	
	public Car(String brand, double price, String color) {
		this(brand,price);
		this.color = color;
	}
	public Car() {
		super();
	}
	
	
	@Override
	public boolean equals(Object obj) {
		Car c = (Car) obj;
		return c.price==this.price?true:false;
	}
	
	
	
	

}
